package 网络编程多线程之聊天;

import java.net.DatagramSocket;
import java.net.SocketException;

public class ChatDemo {

	public static void main(String[] args) throws SocketException {
		DatagramSocket sendDs = new DatagramSocket();
		DatagramSocket receiveDs = new DatagramSocket(10002);
		new Thread(new Send(sendDs)).start();
		new Thread(new Receive(receiveDs)).start();
	}
}
